using Microsoft.Extensions.DependencyInjection;
using RFS.BizLogic;
using RFS.BizLogic.Sys;
using RFS.BizLogic.Sys.impl;
using RFS.WPF.Views;

namespace RFS.WPF.StartUp
{
    public static class ViewStarter
    {

        public static IAntiObject Ins;

        public static IAntiObject Start(bool testmode=false)
        {
            
            Ins = Starter.StartApp(testmode );
            
            Ins.RegisterService((svs) =>
            {
                svs.AddTransient<SysVm, SysVm>();
                svs.AddTransient<MainWindow, MainWindow>();
                svs.AddTransient<VoucherSetWindow, VoucherSetWindow>();
                svs.AddTransient<VoucherSetWrapperVm, VoucherSetWrapperVm>();
                // svs.AddTransient<FaHuoDuizhang_ProcessView, FaHuoDuizhang_ProcessView>();
                

            });


            return Ins ;
        }
        
    }
}